from django.conf.urls.defaults import patterns, include, url

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    # Examples:
    # url(r'^$', 'webui.views.home', name='home'),
    # url(r'^webui/', include('webui.foo.urls')),

    # Uncomment the admin/doc line below to enable admin documentation:
    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    url(r'^admin/', include(admin.site.urls)),
)
urlpatterns += patterns('webui.apk.views',
    url(r'^info/(?P<apk_id>.+)$', 'ajax_appinfo'),
    url(r'^download/(?P<apk_id>.+)$', 'downloadfile'),
    
    url(r'^get/(?P<apk_id>.+)$', 'getfile'),
    url(r'^send$', 'sendfile'),

    url(r'^(?P<page_name>[^/]*)$', 'showpage'),
)
